<!DOCTYPE html>
<html>
<head>
    {include file="public/meta"}
	<title>确认订单 - 个人中心 - {$maccms.site_name}</title>
	<meta name="keywords" content="确认订单 - 个人中心">
	<meta name="description" content="确认订单 - 个人中心">
	{include file="public/include"}
</head>
<body id="conch-member">
{include file="public/head"}
<div class="conch-header">
    <div class="conch-headwrap conch-hasone{if$conch['theme']['nav']['has']==1} conch-hasconch{/if} hl-hide-sm">
        <div class="hl-mob-nav">
            <a href="javascript:MAC.GoBack()" class="hl-pull-left left"><i class="iconfont hl-icon-jiantouzuo"></i></a>
            <a href="javascript:void(0)" class="hl-pull-right right"></a>
            <span class="hl-mob-title hl-text-site hl-lc-1">确认订单</span>
        </div>
    </div>
</div>
<div class="conch-content conch-member">
    <div class="conch-ctwrap">
        <div class="hl-ctwrap-item">
            <div class="container">
                <div class="hl-row-box clearfix">
                    <div class="row">               
                        <div id="left" class="hl-left-menus hl-col-xs-12 hl-col-sm-30w hl-col-lg-3 hl-hidden-xs">
                            {include file="user/leftmenu"}
                        </div>
                        <div id="right" class="hl-right-content hl-col-xs-12 hl-col-sm-70w hl-col-lg-9">
                            <div class="hl-cont-right">
                                <div class="hl-rb-head hl-hidden-xs clearfix">
                                    <h2 class="hl-rb-title">确认订单</h2>
                                </div>
                                <div class="hl-cont-list">
                                    <div class="hl-list-wrap">
                                        <form method="post" target="_blank" action="{:url('user/gopay')}">
                                        <input type="hidden" name="order_id" value="{$info.order_id}">
                                        <input type="hidden" name="order_code" value="{$info.order_code}">	
                                        <p><span>订单编号</span>{$info.order_code}</p>
                                        <p><span>订单金额</span>{$info.order_price}元</p>
                                        <p>
                                            <span>支付方式</span><select name="payment" id="payment">
                                                <option value ="">选择支付方式</option>
                                                {volist name="ext_list" id="vo"}
                                                <option value="{$key}">{$vo}支付</option>
                                                {/volist}
                                            </select>
                                        </p>
                                        <p id="paytype_box" style="display:none;">
                                            <span>支付类型</span><select id="paytype" name="paytype"></select>
                                        </p>
                                        <input type="submit" id="btn_submit" class="hl-btn-submit hl-bg-conch" value="确认">
                                        </form>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<script>
	var codepay_type = '{maccms:foreach name=":explode(',',$config.codepay.type)"}<option value ="{$vo}">{if condition="$vo==1"}支付宝二维码{elseif condition="$vo==2"/}QQ钱包二维{elseif condition="$vo==3"/}微信二维码{/if}</option>{/maccms:foreach}';
	var zhapay_type ='{maccms:foreach name=":explode(',',$config.zhapay.type)"}<option value ="{$vo}">{if condition="$vo==1"}微信{elseif condition="$vo==2"/}支付宝{/if}</option> {/maccms:foreach}';

	$("#payment").change(function() {
		$('#paytype').html('');
		if($("#payment").val()=="codepay" || $("#payment").val()=="zhapay" ){
			if($("#payment").val()=="codepay") {
				$('#paytype').html(codepay_type);
			}
			if($("#payment").val()=="zhapay") {
				$('#paytype').html(zhapay_type);
			}
			$("#paytype_box").slideDown();
		}
		else{
			$("#paytype_box").slideUp();
		}
	});

	$(".paytype").change(function() {
		$('#paytype').val( $(this).val() );
	});
</script>
</div>
{include file="public/foot"}
</body>
</html>